package main

import (
	"fmt"
	"time"
)

func main()  {

	t := time.NewTicker(time.Second * 1)

	for  {
		select {
		case <- t.C:
		//	go func() {
				defer func() {
					if err := recover(); err != nil{
						fmt.Println(err)
					}
				}()

				panica()
			//}()

		}
	}
	
}

func panica()  {
	panic("ok")
}
